package com.chinaunicom.structure.proxy.staticproxy;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/8/9 9:44
 * Description: 向客户端提供接口
 */
public class ClientManager {
    private IService iService;
    
    public ClientManager(){
        this.iService = new ServiceImplProxy(new ServiceImpl());
    }

    private void execute() {
        this.iService.execute();
    }

    private void showMsg() {
        this.iService.showMsg();
    }
    
    public void executeProxy(){
        execute();
        showMsg();
    }
    
}
